package com.itheima.d4_print_stream;

import java.io.FileNotFoundException;
import java.io.PrintStream;
import java.io.PrintWriter;

/*
    目标：掌握打印流：PrintStream/PrintWriter的用法。
 */
public class PrintTest1 {
    public static void main(String[] args) throws Exception {
//        PrintWriter ps = new PrintWriter("print1.txt");
        PrintStream ps = new PrintStream("print2.txt");
        ps.println(1);
        ps.println("sdlfk");
        ps.println("两块肥肉");
        ps.println(54.23);
        ps.println(false);
        ps.println(true);
        ps.close();
    }

}
